package com.yc.weixin.bean.responseMessage;

import java.io.Serializable;

import javax.xml.bind.annotation.XmlElement;

import org.eclipse.persistence.oxm.annotations.XmlCDATA;



/**
 * 响应消息基类
 * @author pj
 */
public class ResponseBaseMessage implements Serializable {

	
	private static final long serialVersionUID = 7436421526132006180L;

	private String toUserName;

	private String fromUserName;

	private long createTime;

	private String msgType;

	public ResponseBaseMessage() {
		super();
	}

	public ResponseBaseMessage(String toUserName, String fromUserName, long createTime,
			String msgType) {
		super();
		this.toUserName = toUserName;
		this.fromUserName = fromUserName;
		this.createTime = createTime;
		this.msgType = msgType;
	}

	@XmlElement(name = "ToUserName")
	@XmlCDATA
	public String getToUserName() {
		return toUserName;
	}

	public void setToUserName(String fromUserName) {
		this.toUserName = fromUserName;
	}

	@XmlElement(name = "FromUserName")
	@XmlCDATA
	public String getFromUserName() {
		return fromUserName;
	}

	public void setFromUserName(String toUserName) {
		this.fromUserName = toUserName;
	}

	@XmlElement(name = "CreateTime")
	public long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(long createTime) {
		this.createTime = createTime;
	}

	@XmlElement(name = "MsgType")
	@XmlCDATA
	public String getMsgType() {
		return msgType;
	}

	public void setMsgType(String msgType) {
		this.msgType = msgType;
	}

	@Override
	public String toString() {
		return "BaseMessage [toUserName=" + toUserName + ", fromUserName="
				+ fromUserName + ", createTime=" + createTime + ", msgType="
				+ msgType + "]";
	}

}
